package com.stillalive.springioc.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

// 从配置文件中读取person对象的值
@ConfigurationProperties(prefix = "person")
@Data
@Configuration
public class Person {
    private Integer id;
    private String name;
    private Integer age;
}
